package com.killer.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.killer.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 标准产品单位表
 * </p>
 *
 * @author killer
 * @since 2021-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_sku")
@ApiModel(value="Sku对象", description="标准产品单位表")
public class Sku extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品条码")
    @TableField("sn")
    private String sn;

    @ApiModelProperty(value = "SKU名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "价格（分）")
    @TableField("price")
    private Integer price;

    @ApiModelProperty(value = "库存数量")
    @TableField("num")
    private Integer num;

    @ApiModelProperty(value = "库存预警数量")
    @TableField("alert_num")
    private Integer alertNum;

    @ApiModelProperty(value = "商品图片")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "商品图片列表")
    @TableField("images")
    private String images;

    @ApiModelProperty(value = "重量（克）")
    @TableField("weight")
    private Integer weight;

    @ApiModelProperty(value = "SPUID")
    @TableField("spu_id")
    private Long spuId;

    @ApiModelProperty(value = "类目ID")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty(value = "类目名称")
    @TableField("category_name")
    private String categoryName;

    @ApiModelProperty(value = "品牌名称")
    @TableField("brand_name")
    private String brandName;

    @ApiModelProperty(value = "规格")
    @TableField("spec")
    private String spec;

    @ApiModelProperty(value = "销量")
    @TableField("sale_num")
    private Integer saleNum;

    @ApiModelProperty(value = "评论数")
    @TableField("comment_num")
    private Integer commentNum;

    @ApiModelProperty(value = "商品状态 1-正常，2-下架，3-删除")
    @TableField("status")
    private Integer status;


}
